#-------------------------------------------------
#
# Project created by QtCreator 2015-02-03T09:51:19
#
#-------------------------------------------------

QT       += core gui
QT       += network
QT       += androidextras
QT       += multimedia
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android

INCLUDEPATH += $$PWD/ffmpeg/include
DEPENDPATH += $$PWD/ffmpeg/include

LIBS += -L$$PWD/ffmpeg/lib/ -lavcodec-55
LIBS += -L$$PWD/ffmpeg/lib/ -lavutil-52
LIBS += -L$$PWD/ffmpeg/lib/ -lswscale-2
LIBS += -L$$PWD/ffmpeg/lib/ -lavformat-55
LIBS += -L$$PWD/ffmpeg/lib/ -lswresample-0
LIBS +=-Lpthread

TARGET = RtmpDumpPlayer
TEMPLATE = app


SOURCES += main.cpp\
        mainwindow.cpp\
        TcpPackBuf/TcpPackBuf.cpp \
        Task_Base/EventImpl.cpp \
        Task_Base/Task_Base.cpp \
        StreamBuf/StreamBuf.cpp \
        ClientImpl/Recv_Task.cpp \
        ClientImpl/Return_Task.cpp \
        ClientImpl/Send_Task.cpp \
        ClientImpl/TcpClient.cpp \
        qdebug2logcat.cpp \
        rtmptask.cpp \
    audiotask.cpp \
    generator.cpp \
    networkavdataread.cpp \
    synchronousav.cpp \
    videotask.cpp

HEADERS  += mainwindow.h \
        libavinclude.h \
        TcpPackBuf/TcpPackBuf.h \
        Task_Base/CriticalSection.h \
        Task_Base/EventImpl.h \
        Task_Base/Task_Base.h \
        StreamBuf/StreamBuf.h \
        ClientImpl/Receive_handler.h \
        ClientImpl/Recv_Task.h \
        ClientImpl/Return_Task.h \
        ClientImpl/Send_Task.h \
        ClientImpl/TcpClient.h \
        rtmptask.h \
    audiotask.h \
    generator.h \
    networkavdataread.h \
    synchronousav.h \
    videotask.h \
    out_handler.h

FORMS    += mainwindow.ui

CONFIG += mobility
MOBILITY = 

contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
    ANDROID_EXTRA_LIBS = $$PWD/ffmpeg/lib/libavcodec-55.so $$PWD/ffmpeg/lib/libavutil-52.so $$PWD/ffmpeg/lib/libswscale-2.so $$PWD/ffmpeg/lib/libswresample-0.so $$PWD/ffmpeg/lib/libavformat-55.so $$PWD/librtmp/lib/librtmp.so
}
INCLUDEPATH += $$PWD/librtmp/include
DEPENDPATH += $$PWD/librtmp/include
